package com.lagou.pojo;

import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;

/**
 * 容器对象：存放数据库连接池信息和mapper.xml配置文件的信息
 */
public class Configuration {


    //javax.sql.DataSource 是 jdk 自带的，这个是个接口，几乎所有连接池都会实现这个接口。
    private DataSource dataSource;

    /**
     * key:statementid value:封装好的mappedStatement对象
     */
    Map<String,MappedStatement> mappedStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
